﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNet.Identity.EntityFramework;

namespace Identity.Web.Core
{
    public class AppIdentityDbContext : IdentityDbContext<Models.IdentityUser>
    {

        public AppIdentityDbContext() : base("IdentityDb")
        {

        }

        static AppIdentityDbContext()
        {
            Database.SetInitializer<AppIdentityDbContext>(new IdentityDbInit());
        }

        public static AppIdentityDbContext Create()
        {
            return new AppIdentityDbContext();
        }
    }
    public class IdentityDbInit : NullDatabaseInitializer<AppIdentityDbContext>
    {
    }
}
